package com.ztgf.shopping.models.dto.shop;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.ztgf.common.dto.BaseDTO;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 店铺保证金DTO
 *
 * @author zhanghualang
 * @Date 2020-06-16 14:38:24
 */
@Data
@TableName("shop_earnest_money")
@ApiModel(value="店铺保证金对象", description="店铺保证金对象")
public class ShopEarnestMoneyDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "乐观锁")
    private Integer revision;
    @ApiModelProperty(value = "创建人")
    private Long createUserId;
    @ApiModelProperty(value = "更新人")
    private Long updateUserId;
    @ApiModelProperty(value = "店铺ID")
    private Long shopId;
    @ApiModelProperty(value = "应缴纳金额")
    private BigDecimal payable;
    @ApiModelProperty(value = "实缴纳金额")
    private BigDecimal paid;
    @ApiModelProperty(value = "余额")
    private BigDecimal balance;
    @ApiModelProperty(value = "已使用金额")
    private BigDecimal usedAmount;
    @ApiModelProperty(value = "需补足金额")
    private BigDecimal vacancyAmount;
    @ApiModelProperty(value = "保证金阈值")
    private BigDecimal thresholdAmount;
    @ApiModelProperty(value = "状态 0未缴纳，1已缴纳，2保证金不足")
    private Integer status;

    @ApiModelProperty("过期时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("expiration")
    protected Date expiration;

    @ApiModelProperty(value = " 倒计时状态 0未启动，1启动中，2已过期")
    private Integer countdownStatus;
}